/* ExportPlainFileAction.java
 * Author: liuex
 * 2007-12-20 ����12:02:55
 *
 * Note: 
 */
package lex.proxyverfier.actions;

import java.io.File;
import java.io.IOException;
import java.util.Collection;

import javax.swing.filechooser.FileFilter;
import javax.swing.filechooser.FileNameExtensionFilter;

import org.lex.net.proxy.ProxyServer;


/**
 * 
 */
public class ExportPlainFileAction extends BaseExportAction
{
	public ExportPlainFileAction()
	{
		super();
		this.setName( "Plain file..." );
	}

	@Override
	protected void export( Collection<ProxyServer> servers, File file ) throws IOException
	{
		ImportExportOperations.exportPlain( servers, file );
	}

	@Override
	protected FileFilter getFileFilter()
	{
		return new FileNameExtensionFilter( "Plain text file", "txt" );
	}

	@Override
	protected String getFilePostfix()
	{
		return ".txt";
	}
}
